/*
 * File GuiController.java 
 */
package cs.controller;

import cs.entity.UserFile;
import cs.entity.UserTextMessage;

/**
 * Interface of the ChatGui with the chat controller.<p>
 * Package  cs.controller
 * Project ChatSystemG1 - INSA 4INFOA1 - 2013/2014
 * @author Julie DUMONS & Juste OUEDRAOGO
 */
public interface GuiController {
	
	/**
	 * submit connection request
	 */
	public void performConnect(String username);
	
	/**
	 * submit a message to send
	 */
	public void performAddSendMsg(UserTextMessage msg);
	
	/**
	 * get the received message
	 */
	public UserTextMessage getReceivedMsg();

	/**
	 * submit a file to send (add to the model)
	 * @param u
	 */
	public void performAddSendFile(UserFile u); 
	/**
	 * called when localuser accepted a file request
	 */
	public void performFileAccepted(UserFile u);
	/**
	 * called when localuser refused a file request
	 */
	public void performFileRefused(UserFile u);
}
